package com.wc.tt;

public class Client {
    public static void main(String[] args) {
        StrageFactory strageFactory = new StrageFactory();

        //(1, "事假", 4, 2),
        AbstractAttence abstractAttence = strageFactory.getAttence(1);
        System.out.println(abstractAttence.reduceBaseScore(1, 1));
        System.out.println(abstractAttence.reducePerformanceScore(0.5, 1));
        System.out.println(abstractAttence.reduceBaseScore(0.1, 1));

        System.out.println("===");
        //(2, "病假", 2, 1)
        abstractAttence = strageFactory.getAttence(2);

        System.out.println(abstractAttence.reduceBaseScore(1, 2));

        System.out.println(abstractAttence.reducePerformanceScore(1, 2));

        System.out.println(abstractAttence.reducePerformanceScore(0.4, 2));


    }
}

